<%-- 
    Document   : fn1
    Created on : 2014/8/19, 上午 09:35:54
    Author     : Benny
--%>

<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<%
    request.setAttribute("x","Hello FN1");
    request.setAttribute("y",new int[]{2,4,6,8,10});
    ArrayList list =new ArrayList();
    list.add("How are you?");
    list.add(10);
    list.add(new Date());
    request.setAttribute("z",list);
    %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FN1</title>
    </head>
    <body>
        <h1>-----FN1-----</h1>
        <hr>
        長度一：${fn:length(x)}<br>
        長度二：${fn:length(y)}<br>
        長度三：${fn:length(z)}<br>
        轉換小寫：${fn:toLowerCase(x)}<br>
        軟換大寫：${fn:toUpperCase(x)}<br>
    </body>
</html>
